package com.fantasy.blog.service;

import com.fantasy.blog.vo.Result;
import com.fantasy.blog.vo.params.CommentParam;
import org.springframework.transaction.annotation.Transactional;

public interface CommentsService {
    /**
     * 根据文章id获取评论信息
     * @param id
     * @return
     */
    Result comments(Long id);

    /**
     * 评论，需要登录验证
     * @param commentParam
     * @return
     */
    @Transactional
    Result comment(CommentParam commentParam);
}
